home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
E-Education
/
(c)ed14.d64
/
lesson 11
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
8KB
|
230 lines
10 GOTO100
50 REM <YES>
51 S=54272:FORE=STOS+28:POKEE,0:NEXT
52 POKE54296,15:POKE54277,42:POKE54278,250
53 POKE54276,23:POKE54273,23:POKE54272,191
54 FORT=1TO150:NEXT:POKE54276,32:FORT=1TO200:NEXT
55 POKE54296,0:RETURN
60 REM <N0>
61 S=54272:FORE=STOS+28:POKEE,0:NEXT
62 POKE54296,15:POKE54277,18:POKE54278,242
63 POKE54276,33:POKE54273,4:POKE54272,48
64 FORT=1TO250:NEXT:POKE54276,32:FORT=1TO300:NEXT
65 POKE54296,0:RETURN
70 REM <BLIP>
71 S=54272:FORE=STOS+28:POKEE,0:NEXT
72 POKE54296,5:POKE54277,42:POKE54278,250
73 POKE54276,23:POKE54273,23:POKE54272,191
74 FORT=1TO30:NEXT:POKE54276,32:FORT=1TO50:NEXT
75 POKE54296,0:RETURN
80 FORT=1TO500:NEXT:RETURN
81 FORT=1TO1000:NEXT:RETURN
82 FORT=1TO2000:NEXT:RETURN
83 FORT=1TO3000:NEXT:RETURN
84 FORT=1TO4000:NEXT:RETURN
85 FORT=1TO5000:NEXT:RETURN
90 GOSUB81:GOSUB70
91 PRINT"[154] [208]RESS [211][208][193][195][197][160][194][193][210][160]TO CONTINUE
92 [161]R$:[139]R$[179][177][199](32)[167]92
93 [142]
95 [153]" PEEKETTER LUCK WITH THE NEXT QUESTION.OPEN":[142]
100 [151]53280,0:[151]53281,0:[151]646,3:[151]53272,23:C[178]0:P[178]0:W[178]0:D[178]0:G[178]0
101 [153]"LOAD ATNCLOSE(null)(null)(null)CHR$CLOSEVALSTR$(null)LENATN(null)RIGHT$(null)(null)ATN(null)CLOSE(null)(null)(null)CHR$(null)ATN(null)
102 PRINT" [198][207][210][160][195]64 [195][207][205][208][213][212][197][210][211]
105 [153]" WAIT";
110 [153]" WAIT";
115 [153]" (null)RACTICE (null)ROBLEMS IN ATNRITHMETIC WAIT";
120 [153]" WAIT";
125 [153]" CHR$RADE 4 (null)ART 1 WAIT";
130 [153]" WAIT";
135 [153]" (null)ESSON 11 WAIT";
140 [153]" WAIT";
145 [153]" (null)ROVING ATNNSWERS OPEN WAIT";
150 [153]" WAIT";
155 [153]" WAIT"
160 [153]" WHC ONON"
165 [141]90
170 [153]"LOAD ATNND AWAY WE GO......."
175 [141]81:[141]50:[141]80
200 [153]"PRINT#LOAD (null)UESTION 1 WAITOPEN":Z[178]0
205 [153]" LEFT$ERBERT SAID HE NEEDED 28 CENTS
210 PRINT" TO BUY 2 BUNS AT 14 CENTS A BUN. [196]OES HE? (Y OR N)"
220 GOSUB81:GOSUB70
225 PRINT" [145]"
230 INPUT A$
240 IFA$<>"Y"AND A$<>"[217]"ANDA$<>"YES"THEN270
250 PRINT"[158] [195][207][210][210][197][195][212]!! [146][159]":GOSUB50:GOSUB82
260 P=P+1:GOTO300
270 PRINT"[150] [207][213][195][200]! .......... [212]HAT [200][213][210][212]!":GOSUB60:GOSUB82:Z=Z+1
275 IFZ=2THENG=G+1:GOTO295
280 PRINT"[145] [212]RY AGAIN ":GOSUB70:GOSUB81:W=W+1
290 PRINT"[159][145][145] [145][145][145][145][145][145][145]":GOTO225
295 " [212]HE ANSWER IS [217]ES[150]. ":GOSUB82
297 PRINT" 2 X 14 = 28 ":GOSUB82:GOSUB90
300 PRINT"[152][147] [209]UESTION 2 [146][159]":Z=0
305 PRINT" [215]AS [197]SMERALDA RIGHT WHEN SHE SAID
310 [153]" THAT A BANANA WORTH 23 CENTS AND AN
315 PRINT" APPLE AT 12 CENTS WOULD COST 36 CENTS IN ALL?
317 [153]" (PRESS (null) OR (null))"
320 [141]81:[141]70
325 [153]" ON"
330 [133] A$
340 [139]A$[179][177]"N"[175]A$[179][177]"(null)"[175]A$[179][177]"NO"[167]370
350 [153]"SYS LEN(null)(null)(null)VALLEN(null)!! WAITOPEN":[141]50:[141]82
360 P[178]P[170]1:[137]400
370 [153]"DEF (null)(null)LENLEFT$! .......... (null)HAT LEFT$(null)(null)(null)!":[141]60:[141]82:Z[178]Z[170]1
375 [139]Z[178]2 [167] G[178]G[170]1:[137]395
380 [153]"ON (null)RY AGAIN ":[141]70:[141]81:W[178]W[170]1
390 [153]"OPENONON ONONONONONONON":[137]325
395 " (null)HE ANSWER IS (null)ODEF. ":[141]82
397 [153]" 23 + 12 = 35 ":[141]82:[141]90
400 [153]"PRINT#LOAD (null)UESTION 3 WAITOPEN":Z[178]0
405 [153]" (null)HAT IS THE DIFFERENCE BETWEEN 28
410 PRINT" AND 35. [210]ICHARD SAID IT WAS 9. [215]AS HE RIGHT?"
415 PRINT" ([208]RESS [217] OR [206])"
420 GOSUB81:GOSUB70
425 PRINT" [145]"
430 INPUT A$
440 IFA$<>"N"ANDA$<>"[206]"ANDA$<>"NO"THEN470
450 PRINT"[158] [195][207][210][210][197][195][212]!! [146][159]":GOSUB50:GOSUB82
460 P=P+1:GOTO500
470 PRINT"[150] [207][213][195][200]! .......... [212]HAT [200][213][210][212]!":GOSUB60:GOSUB82:Z=Z+1
475 IFZ=2THENG=G+1:GOTO495
480 PRINT"[145] [212]RY AGAIN ":GOSUB70:GOSUB81:W=W+1
490 PRINT"[159][145][145] [145][145][145][145][145][145][145]":GOTO425
495 " [212]HE ANSWER IS [206]O[150]. ":GOSUB82
497 PRINT" 35 - 28 = 7 ":GOSUB82:GOSUB90
500 PRINT"[152][147] [209]UESTION 4 [146][159]":Z=0
505 PRINT" [201]S 60 CENTS ENOUGH FOR [208]RUDENCE TO
510 [153]" TAKE TO THE STORE TO BUY 3 CAKES OF SOAP AT 20 CENTS A CAN?
515 PRINT" ([208]RESS [217] OR [206])"
520 GOSUB81:GOSUB70
525 PRINT" [145]"
530 INPUT A$
540 IFA$<>"[217]"ANDA$<>"Y"ANDA$<>"YES"THEN570
550 PRINT"[158] [195][207][210][210][197][195][212]!! [146][159]":GOSUB50:GOSUB82
560 P=P+1:GOTO600
570 PRINT"[150] [207][213][195][200]! .......... [212]HAT [200][213][210][212]!":GOSUB60:GOSUB82:Z=Z+1
575 IFZ=2THENG=G+1:GOTO595
580 PRINT"[145] [212]RY AGAIN ":GOSUB70:GOSUB81:W=W+1
590 PRINT"[159][145][145] [145][145][145][145][145][145][145]":GOTO525
595 " [212]HE ANSWER IS [217]ES[150]. ":GOSUB82
597 PRINT" 20 X 3 = 60 ":GOSUB82:GOSUB90
600 PRINT"[152][147] [209]UESTION 5 [146][159]":Z=0
605 PRINT" [199]RACE SAID A DOZEN FIVE-CENT COOKIES
610 [153]" WOULD COST 70 CENTS. (null)AS SHE RIGHT?
615 PRINT" ([208]RESS [217] OR [206])"
620 GOSUB81:GOSUB70
625 PRINT" [145]"
630 INPUT A$
640 IFA$<>"N"ANDA$<>"[206]"AND$<>"NO"THEN670
650 PRINT"[158] [195][207][210][210][197][195][212]!! [146][159]":GOSUB50:GOSUB82
660 P=P+1:GOTO700
670 PRINT"[150] [207][213][195][200]! .......... [212]HAT [200][213][210][212]!":GOSUB60:GOSUB82:Z=Z+1
675 IFZ=2THENG=G+1:GOTO695
680 PRINT"[145] [212]RY AGAIN ":GOSUB70:GOSUB81:W=W+1
690 PRINT"[159][145][145] [145][145][145][145][145][145][145]":GOTO625
695 " [212]HE ANSWER IS [206]O[150]. ":GOSUB82
697 PRINT" 12 X 5 = 60 ":GOSUB82:GOSUB90
700 PRINT"[152][147] [209]UESTION 6 [146][159]":Z=0
705 PRINT" [208]AD, 35 CENTS; PENCIL, 6 CENTS;
710 [153]" ERASER, 10 CENTS. MID$AMIE SAID THESE
715 PRINT" WOULD COST 51 CENTS. [201]S THAT RIGHT?
717 [153]" ((null)RESS (null) OR (null))"
720 [141]81:[141]70
725 [153]" ON"
730 [133] A$
740 [139]A$[179][177]"(null)"[175]A$[179][177]"Y"[175]A$[179][177]"YES"[167]770
750 [153]"SYS LEN(null)(null)(null)VALLEN(null)!! WAITOPEN":[141]50:[141]82
760 P[178]P[170]1:[137]800
770 [153]"DEF (null)(null)LENLEFT$! .......... (null)HAT LEFT$(null)(null)(null)!":[141]60:[141]82:Z[178]Z[170]1
775 [139]Z[178]2[167] G[178]G[170]1:[137]795
780 [153]"ON (null)RY AGAIN ":[141]70:[141]81:W[178]W[170]1
790 [153]"OPENONON ONONONONONONON":[137]725
795 " (null)HE ANSWER IS (null)ESDEF. ":[141]82
797 [153]" 35 + 6 + 10 = 51 ":[141]82:[141]90
800 [153]"PRINT#LOAD (null)UESTION 7 WAITOPEN":Z[178]0
805 [153]" RIGHT$F 14 CHILDREN BROUGHT 5 CENTS EACH
810 PRINT" TO BUY A BALL WORTH 80 CENTS, IS THAT ENOUGH?
815 [153]" ((null)RESS (null) OR (null))"
820 [141]81:[141]70
825 [153]" ON"
830 [133] A$
840 [139]A$[179][177]"N"[175]A$[179][177]"(null)"[175]A$[179][177]"NO"[167] 870
850 [153]"SYS LEN(null)(null)(null)VALLEN(null)!! WAITOPEN":[141]50:[141]82
860 P[178]P[170]1:[137]900
870 [153]"DEF (null)(null)LENLEFT$! .......... (null)HAT LEFT$(null)(null)(null)!":[141]60:[141]82:Z[178]Z[170]1
875 [139]Z[178]2[167] G[178]G[170]1:[137]895
880 [153]"ON (null)RY AGAIN ":[141]70:[141]81:W[178]W[170]1
890 [153]"OPENONON ONONONONONONON":[137]825
895 " (null)HE ANSWER IS (null)ODEF. ":[141]82
897 [153]" 5 X 14 = 70 ":[141]82:[141]90
900 [153]"PRINT#LOAD (null)UESTION 8 WAITOPEN":Z[178]0
905 [153]" MID$ACK SAID THAT ONE QUARTER OF A
910 PRINT" METRE IS 25 CENTIMETRES. [201]S THAT RIGHT?
915 [153]" ((null)RESS (null) OR (null))"
920 [141]81:[141]70
925 [153]" ON"
930 [133] A$
940 [139]A$[179][177]"(null)"[175]A$[179][177]"Y"[175]A$[179][177]"YES"[167]970
950 [153]"SYS LEN(null)(null)(null)VALLEN(null)!! WAITOPEN":[141]50:[141]82
960 P[178]P[170]1:[137]1000
970 [153]"DEF (null)(null)LENLEFT$! .......... (null)HAT LEFT$(null)(null)(null)!":[141]60:[141]82:Z[178]Z[170]1
975 [139]Z[178]2[167] G[178]G[170]1:[137]995
980 [153]"ON (null)RY AGAIN ":[141]70:[141]81:W[178]W[170]1
990 [153]"OPENONON ONONONONONONON":[137]925
995 " (null)HE ANSWER IS (null)ESDEF. ":[141]82
997 [153]" 100 / 4 = 25 ":[141]82:[141]90
1000 [153]"PRINT#LOAD (null)UESTION 9 WAITOPEN":Z[178]0
1005 [153]" (null)INSTON HAS 50 CENTS. LEFT$E SAYS HE
1010 PRINT" NEEDS 30 CENTS TO BUY A BAT AT
1015 [153]" 90 CENTS. RIGHT$S THAT RIGHT?
1017 PRINT" ([208]RESS [217] OR [206])"
1020 GOSUB81:GOSUB70
1025 PRINT" [145]"
1030 INPUT A$
1040 IFA$<>"[206]"ANDA$<>"N"ANDA$<>"NO"THEN1070
1050 PRINT"[158] [195][207][210][210][197][195][212]!! [146][159]":GOSUB50:GOSUB82
1060 P=P+1:GOTO1100
1070 PRINT"[150] [207][213][195][200]! .......... [212]HAT [200][213][210][212]!":GOSUB60:GOSUB82:Z=Z+1
1075 IFZ=2THEN G=G+1:GOTO1095
1080 PRINT"[145] [212]RY AGAIN ":GOSUB70:GOSUB81:W=W+1
1090 PRINT"[159][145][145] [145][145][145][145][145][145][145]":GOTO1025
1095 " [212]HE ANSWER IS [206]O[150]. ":GOSUB82
1097 PRINT" 50 + 30 = 80 ":GOSUB82:GOSUB90
1100 PRINT"[152][147] [209]UESTION 10 [146][159]":Z=0
1105 PRINT" [201]F YOU HAVE 85 CENTS, CAN YOU BUY A
1110 [153]" PEN AT 50 CENTS AND A PAD THAT COSTS A QUARTER?
1115 PRINT" ([208]RESS [217] OR [206])"
1120 GOSUB81:GOSUB70
1125 PRINT" [145]"
1130 INPUT A$
1140 IFA$<>"Y"ANDA$<>"[217]"THEN1170
1150 PRINT"[158] [195][207][210][210][197][195][212]!! [146][159]":GOSUB50:GOSUB82
1160 GOTO1200
1170 PRINT"[150] [207][213][195][200]! .......... [212]HAT [200][213][210][212]!":GOSUB60:GOSUB82:Z=Z+1
1175 IFZ=2THEN G=G+1:GOTO1195
1180 PRINT"[145] [212]RY AGAIN ":GOSUB70:GOSUB81:W=W+1
1190 PRINT"[159][145][145] [145][145][145][145][145][145][145]":GOTO1125
1195 " [212]HE ANSWER IS [217]ES[150]. ":GOSUB82
1197 PRINT" 50 + 25 = 75 ":GOSUB82:GOSUB90
1200 PRINT"[147] [210]EPORT [195]ARD [146]"
1205 D=W-G:C=10-W
1210 PRINT"[153] 1. [209]UESTIONS ANSWERED CORRECTLY ON FIRST TRY:
1215 [153]" ";C
1220 [153]"FOR 2. (null)UESTIONS ANSWERED CORRECTLY ON SECOND TRY:
1225 PRINT" ";D
1230 PRINT"[150] 3. [209]UESTIONS MISSED ON SECOND TRY:
1235 [153]" ";G;""
1245 [141]90
1250 [153]"SYSLOAD (null)OU HAVE A CHOICE:
1255 PRINT" [208]RESS [210] [146] TO REPEAT THIS LESSON
1260 [153]" (null)RESS (null) WAIT TO RETURN TO THE MENUOPEN"
1265 [161]R$:[139]R$[179][177]"R"[175]R$[179][177]"M"[167]1265
1270 [139]R$[178]"R"[167][140]:[137]100
1280 [153]"LOAD (null)ETURNING TO THE MENU
1285 LOAD"MENU",8
1290 RUN
1295 END
1300 REM BILL CUMBERLAND 90:08:01